package com.haiyou.dc.hystrix;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * http://localhost:7082/dc-hystrix/swagger-ui.html
 * http://localhost:7082/dc-hystrix/hystrix
 */
@EnableCircuitBreaker
@EnableHystrixDashboard
//@EnableEurekaClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}, scanBasePackages = {"com.haiyou.dc.hystrix", "com.haiyou.common"})
public class DcHystrixApplication {
    public static void main(String[] args) {
        SpringApplication.run(DcHystrixApplication.class, args);
    }
}
